<?php
/**
 * 
 * 验证器
 * 
 * */
namespace app\admin\validate;
use think\Validate;

class Article_validate extends Validate
{
    //规则
    protected $rule = [
        'title'          => 'require',
        'catid'          => 'require',
        'content'          => 'require',
      ];
    
    //自定义提示信息
    protected $message = [
        'title.require'       =>  '标题不能为空!',
        'catid.require'          => '栏目不能为空',
        'content.require'          => '内容不能为空',
       ];
}